const _product = [
  {
    id: 1,
    title: '苹果x12',
    price: 8000,
    inventory: 8 // 库存
  },
  {
    id: 2,
    title: '联想电脑',
    price: 5000,
    inventory: 5
  },
  {
    id: 3,
    title: '益达口香糖',
    price: 8,
    inventory: 90
  },
  {
    id: 4,
    title: '可口可乐',
    price: 3,
    inventory: 90
  }
]
// function getProducts(){
//     // 异步请求
//     return _product;
// }
const getProducts = () => {
// 异步请求
  return _product
}
export {
  getProducts
}
